projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50c848a
)
color scale: simplify code a bit
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 18 Feb 2015 22:26:20 +0000
(17:26 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 18 Feb 2015 22:28:08 +0000
(17:28 -0500)
It is not necessary to call gtk_widget_get_accessible repeatedly.
gtk/gtkcolorscale.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcolorscale.c
b/gtk/gtkcolorscale.c
index 9f882ba6f567c799799ccf662da2d01fa65e7a12..81dd685e5c1df3849fb5dac7220cbfe2bd2cfed5 100644
(file)
--- a/
gtk/gtkcolorscale.c
+++ b/
gtk/gtkcolorscale.c
@@
-309,7
+309,7
@@
scale_set_type (GtkColorScale *scale,
atk_object_set_name (atk_obj, C_("Color channel", "Hue"));
else if (type == GTK_COLOR_SCALE_ALPHA)
atk_object_set_name (atk_obj, C_("Color channel", "Alpha"));
- atk_object_set_role (
gtk_widget_get_accessible (GTK_WIDGET (scale))
, ATK_ROLE_COLOR_CHOOSER);
+ atk_object_set_role (
atk_obj
, ATK_ROLE_COLOR_CHOOSER);
}
}